package io.github.idol.data

import io.reactivex.Flowable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Created by codeczx on 2018/7/31 下午 08:33.
 * Class description:
 */

interface ApiService{
    @POST("imsystem/api/im/room/v1/login/user/list")
    fun getRoomList(@Body roomListRequestBody: RoomListRequestBody): Flowable<RoomListInfo>

    @POST("usersystem/api/user/v1/login/phone")
    fun login(@Body loginRequestBody: LoginRequestBody): Flowable<LoginInfo>

    @POST("imsystem/api/im/v1/member/room/message/mainpage")
    fun getRoomDetail(@Body roomDetailRequestBody: RoomDetailRequestBody): Flowable<RoomDetailInfo>
}